package cn.signalpha.modules.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("base_notice")
@ApiModel(value = "Notice对象", description = "消息通知")
public class Notice implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "类型")
    private Integer category;

    @ApiModelProperty(value = "跳转目标id")
    private Long targetId;

    @ApiModelProperty(value = "跳转目标类型")
    private String targetType;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "状态：0未读 1已读")
    private Integer status;

    @ApiModelProperty(value = "发布时间")
    private Date createTime;



}
